<?php namespace App\Http\Controllers;

use App\Http\Requests;
use App\Http\Controllers\Controller;

use App\Lib\AjaxReturn;
use App\Lib\Params\WebColumnSearchParams;
use App\Model\WebColumn;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Input;

class WebColumnController extends Controller {

    /**
     * ajax根据parentId获取webColumn
     * @param $businessId
     * @param $parendId
     * @return string
     */
    public function ajaxGetColumnsByParentId($parentId=0){
        $ajaxRereturn = new \App\Lib\Params\AjaxReturnParams();
        $webColumnSearch = new WebColumnSearchParams(array('parentId'=>$parentId));
        $ajaxRereturn->data = WebColumn::search($webColumnSearch);
        return json_encode($ajaxRereturn);
    }
	/**
	 * Display a listing of the resource.
	 *
	 * @return Response
	 */
	public function index()
	{
		//
	}

	/**
	 * Show the form for creating a new resource.
	 *
	 * @return Response
	 */
	public function create()
	{
		//
	}

	/**
	 * Store a newly created resource in storage.
	 *
	 * @return Response
	 */
	public function store()
	{
		//
	}

	/**
	 * Display the specified resource.
	 *
	 * @param  int  $id
	 * @return Response
	 */
	public function show($id)
	{
		//
	}

	/**
	 * Show the form for editing the specified resource.
	 *
	 * @param  int  $id
	 * @return Response
	 */
	public function edit($id)
	{
		//
	}

	/**
	 * Update the specified resource in storage.
	 *
	 * @param  int  $id
	 * @return Response
	 */
	public function update($id)
	{
		//
	}

	/**
	 * Remove the specified resource from storage.
	 *
	 * @param  int  $id
	 * @return Response
	 */
	public function destroy($id)
	{
		//
	}

}
